package structural.bridge;

public class BridgePattern {
    public static void main(String[] args) {
        IDevice sonyTv = new SonyTV();
        IDevice samsungTv = new SamsungTV();

        RemoteControl sonyRemote = new RemoteControl(sonyTv);
        RemoteControl samsungRemote = new RemoteControl(samsungTv);

        sonyRemote.turnOn();
        samsungRemote.turnOn();

        AdvanceRemoteControl sonyAdvanceRemote = new AdvanceRemoteControl(sonyTv);
        AdvanceRemoteControl samsungAdvanceRemote = new AdvanceRemoteControl(samsungTv);

        sonyAdvanceRemote.volumeUp();
        samsungAdvanceRemote.channelDown();
    }
}
